public class test {
    public static void main(String[] args) {
        Demo d=new Demo();
        Demo.TreeNode root=d.createTree();
        d.preOrder(root);
        System.out.println();
        d.inOrder(root);
        System.out.println();
        d.postOrder(root);
        System.out.println("---------------");
        d.size(root);
        System.out.println(Demo.nodeSize);
        System.out.println(d.size2(root));
        d.getLeafNodeCount1(root);
        System.out.println(Demo.leafsize);
        System.out.println(d.getLeafNodeCount2(root));
        System.out.println(d.getKLevelNodeCount(root,3));
        System.out.println(d.getHeight(root));
        System.out.println(d.find(root,5));
        System.out.println(d.find(root,11));
        d.levelOrder(root);
        System.out.println(d.isCompleteTree(root));
    }
}
